import { request } from "@/http/axios"

/** 增 */



export function agentcreate(data) {
  return request({
    url: "/admin/agent/create",
    method: "post",
    data
  })
}


export function createTableDataApi(data) {
  return request({
    url: "/admin/agent/create",
    method: "post",
    data
  })
}



/** 删 */
export function deleteTableDataApi(id) {
  return request({
    url: `/admin/agent/delete/${id}`,
    method: "delete"
  })
}



/** 改 */
export function updateTableDataApi(data) {
  return request({
    url: `/admin/agent/update/${data.id}`,
    method: "put",
    data
  })
}

/** 查 */
export function agentlist(params) {
  return request({
    url: "/admin/agent/list",
    method: "get",
    params
  })
}
